//
//  TopicGroupTableViewCell.swift
//  HoneyBee
//
//  Created by Smith_Yang on 2018/6/13.
//  Copyright © 2018 point. All rights reserved.
//

import UIKit

class TopicGroupTableViewCell: UITableViewCell {

    @IBOutlet weak var labelGroupDesc: UILabel!
    
    @IBOutlet weak var imageViewGroupCount: UIImageView!
    @IBOutlet weak var labelGroupTopicCount: UILabel!
    @IBOutlet weak var labelGroupName: UILabel!
    @IBOutlet weak var imageViewGroupName: UIImageView!
    @IBOutlet weak var labelGroupAuthor: UILabel!
    
    @IBOutlet weak var imageViewGroupAuthor: UIImageView!
    
    var topicGroup:TopicGroupModel?
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func configModel(model:TopicGroupModel , index:IndexPath) {
        self.topicGroup = model
        
        labelGroupDesc.text =  model.remark
        labelGroupTopicCount.text =  String(format: "%d", model.topicNum)
        labelGroupName.text = model.groupName
        labelGroupAuthor.text = model.groupLeader
        
    }
    
}
